package com.dom.domweb.model;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Description 菜单管理节点模型
 * @Author xllei
 * @Date 2018/12/1 7:58 PM
 * @Version 1.0
 **/
public class MenuNode implements Serializable {
    private Integer id;
    private String title;
    @JSONField(name="getIsLast")
    private boolean isLast;
    private Integer parentId;
    private Integer level;
    private List<CheckArr> checkArr;
    private BasicData basicData;
    private List<MenuNode> children;
    private String menuUrl;

    @Data
    public static class CheckArr{
        private Integer type;
        private Integer isChecked;
    }

    @Data
    public static class BasicData{
        private String menuName;
        private String menuUrl;
        private Integer menuType;
        private String menuDesc;
        private Integer menuNo;
        private String fatherMenuName;
        private Integer stat;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public boolean getIsLast() {
        return isLast;
    }

    public void setIsLast(boolean last) {
        isLast = last;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public List<CheckArr> getCheckArr() {
        return checkArr;
    }

    public void setCheckArr(List<CheckArr> checkArr) {
        this.checkArr = checkArr;
    }

    public BasicData getBasicData() {
        return basicData;
    }

    public void setBasicData(BasicData basicData) {
        this.basicData = basicData;
    }

    public List<MenuNode> getChildren() {
        return children;
    }

    public void setChildren(List<MenuNode> children) {
        this.children = children;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }
}
